#ifndef DRAWIMAGE_H
#define DRAWIMAGE_H

#include <QWidget>
#include <QKeyEvent>
#include <QPaintEvent>

class DrawImage : public QWidget
{
Q_OBJECT
public:
    explicit DrawImage(QWidget *parent = 0);
    ~DrawImage();

    void setImagePath(const QString imagePath);
    void endThis();

private:
    int pX;
    int pY;
    QString iPath;

//signals:
//    void escapeKeyPressed();

protected:
    void keyPressEvent(QKeyEvent *keyEvent);
    void paintEvent(QPaintEvent *pEvent);
    void drawImage();

};

#endif // DRAWIMAGE_H
